package day1;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest3 {
    public static void main(String[] args) {
        String s="nihao,jiava";
        String s2="hao";
        int p=s.indexOf(s2);
        int p2=s.indexOf(s2,5);
        int p3=s.indexOf('i');
        System.out.println(p2);
        System.out.println(p3);
    }
}
